
app:registClass("TaskController", "app.task.controllers.TaskController")

app:registInst(import(".models.TaskModel").new())

app:registInst(app:getClass("TaskController").new({type="systemUI"}))


app.session:on("pb_roadOfHero.S2C_RoadOfHeroProcess", function(msg)
	app:sendMsg("TaskModel", "onRoadOfHeroProcess", msg)
end)

app.session:on("pb_roadOfHero.S2C_RoadOfHeroBattle", function(msg)
	print("S2C_RoadOfHeroBattle")
	app:sendMsg("TaskModel", "onFinishRoadOfHeroBattle", msg)
end)
